DISCUSSION
The
ATSUGetRunStyle function finds the style run information at a given location and the range of text that shares this information (including style run attributes, font features, and font variations).
If there is only one style run set in the text layout object (whether or not it covers the entire range of text in the text layout object),
ATSUGetRunStyle passes back the style run information at the specified offset and uses it to set the style run information of the remaining text.
If you want to find the style run information that is continuous over a range of text, call the function
ATSUGetContinuousAttributes.